import event.*;

public class Deck {
    private String name;

    public Event<NameChangedEventArgs> NameChanged = new Event<NameChangedEventArgs>();

    public void setName(String name) {
        this.name = name;

        NameChanged.raise(this, new NameChangedEventArgs(name));
    }

    public class NameChangedEventArgs extends EventArgs
    {
        private String name;

        public NameChangedEventArgs(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }
    }

}

